// 路由模块
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const OPERATION_MONITORING: AppRouteRecordRaw = {
  path: '/operation-monitoring',
  name: '运行监控',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.operation-monitoring',
    requiresAuth: true,
    ignoreCache: false,
    icon: 'icon-video-camera',
    roles: ['*'],
    order: 5,
  },
  children: [
    // erp日志
    {
      path: '/erp-log',
      name: 'ERP日志查看',
      component: () =>
        import('@/views/operation-monitoring/list/erp-log/index.vue'),
      meta: {
        locale: 'menu.erpLog',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    // 箱子查询
    {
      path: '/work-bin-query',
      name: '综合查询',
      component: () =>
        import('@/views/operation-monitoring/list/work-bin-query/index.vue'),
      meta: {
        locale: 'menu.workBinQuery',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },

    {
      path: '/log-query',
      name: 'WMS与CEMOP接口日志',
      component: () =>
        import('@/views/operation-monitoring/list/log-query/index.vue'),
      meta: {
        locale: 'menu.logQuery',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/wms-log',
      name: 'WMS接口日志',
      component: () =>
        import('@/views/operation-monitoring/list/wms-log/index.vue'),
      meta: {
        locale: 'menu.wmsLog',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
  ],
};

export default OPERATION_MONITORING;
